package com.example.springboot.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小申
 * @since 2023-08-14
 */
@Getter
@Setter
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户名")
      private String nickname;

      @ApiModelProperty("账号")
      private String account;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("性别：1是男0是女")
      private Boolean sex;

      @ApiModelProperty("动态数")
      private Integer activityLen;

      @ApiModelProperty("粉丝数")
      private Integer fansLen;

      @ApiModelProperty("关注数")
      private Integer focosLen;

      @ApiModelProperty("ip地址")
      private String location;

      @ApiModelProperty("头像")
      private String avatar;

      @ApiModelProperty("创建时间")
      private Date createTime;

      @ApiModelProperty("更新时间")
      private Date updateTime;

      @ApiModelProperty("简介")
      private String intro;

      @ApiModelProperty("生日")
      private Date birthday;

      @ApiModelProperty("收藏数")
      private Integer collectionLen;


  @Override
  public String toString() {
    return "User{" +
            "id=" + id +
            ", nickname='" + nickname + '\'' +
            ", account='" + account + '\'' +
            ", password='" + password + '\'' +
            ", sex=" + sex +
            ", activityLen=" + activityLen +
            ", fansLen=" + fansLen +
            ", focosLen=" + focosLen +
            ", location='" + location + '\'' +
            ", avatar='" + avatar + '\'' +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", intro='" + intro + '\'' +
            ", birthday=" + birthday +
            ", collectionLen=" + collectionLen +
            '}';
  }
}
